Integrand size = 17, antiderivative size = 29 \[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {\cot (x)}{\sqrt {a \csc ^2(x)}}+\frac {\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {3738, 4210, 2670, 14} \[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {\cot (x)}{\sqrt {a \csc ^2(x)}}+\frac {\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}} \]
[In]
[Out]
Rule 14
Rule 2670
Rule 3738
Rule 4210
Rubi steps \begin{align*} \text {integral}& = \int \frac {\tan ^2(x)}{\sqrt {a \csc ^2(x)}} \, dx \\ & = \frac {\csc (x) \int \sin (x) \tan ^2(x) \, dx}{\sqrt {a \csc ^2(x)}} \\ & = -\frac {\csc (x) \text {Subst}\left (\int \frac {1-x^2}{x^2} \, dx,x,\cos (x)\right )}{\sqrt {a \csc ^2(x)}} \\ & = -\frac {\csc (x) \text {Subst}\left (\int \left (-1+\frac {1}{x^2}\right ) \, dx,x,\cos (x)\right )}{\sqrt {a \csc ^2(x)}} \\ & = \frac {\cot (x)}{\sqrt {a \csc ^2(x)}}+\frac {\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}} \\ \end{align*}
Time = 0.14 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.66 \[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {\cot (x)+\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}} \]
[In]
[Out]
Time = 0.24 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.83
method | result | size |
default | \(\frac {\sqrt {4}\, \left (\cos \left (x \right )+1\right )^{2} \sec \left (x \right ) \csc \left (x \right )}{2 \sqrt {a \csc \left (x \right )^{2}}}\) | \(24\) |
risch | \(\frac {i \left ({\mathrm e}^{4 i x}+6 \,{\mathrm e}^{2 i x}+1\right )}{2 \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) \left ({\mathrm e}^{2 i x}+1\right )}\) | \(55\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.21 \[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {{\left (\tan \left (x\right )^{3} + 2 \, \tan \left (x\right )\right )} \sqrt {\frac {a \tan \left (x\right )^{2} + a}{\tan \left (x\right )^{2}}}}{a \tan \left (x\right )^{2} + a} \]
[In]
[Out]
\[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\int \frac {\tan ^{2}{\left (x \right )}}{\sqrt {a \left (\cot ^{2}{\left (x \right )} + 1\right )}}\, dx \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.62 \[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {\tan \left (x\right )^{2} + 2}{\sqrt {\tan \left (x\right )^{2} + 1} \sqrt {a}} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.86 \[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=-\frac {2 \, \mathrm {sgn}\left (\sin \left (x\right )\right )}{\sqrt {a}} + \frac {\frac {1}{\cos \left (x\right )} + \cos \left (x\right )}{\sqrt {a} \mathrm {sgn}\left (\sin \left (x\right )\right )} \]
[In]
[Out]
Time = 13.35 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.17 \[ \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {{\mathrm {tan}\left (x\right )}^3\,\sqrt {\frac {1}{{\mathrm {tan}\left (x\right )}^2}}+2\,\mathrm {tan}\left (x\right )\,\sqrt {\frac {1}{{\mathrm {tan}\left (x\right )}^2}}}{\sqrt {a}\,\sqrt {{\mathrm {tan}\left (x\right )}^2+1}} \]
[In]
[Out]